﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace BeerStats.Models
{
    public class Beer
    {
        private ICollection<User> users;

        public int BeerId { get; set; }

        public string Name { get; set; }

        public string BreweryName { get; set; }

        public float AlcoholByVolume { get; set; }

        public string Description { get; set; }

        public string ImageSource { get; set; }

        public string LabelSource { get; set; }

        public int Rating { get; set; }

        public BeerType BeerType { get; set; }

        public ICollection<User> Users
        {
            get
            { 
                return users;
            }
            set
            { 
                users = value; 
            }
        }

        public Beer()
        {
            this.Users = new HashSet<User>();
        }
    }
}
